Fix glibc crash dump in xl vcpu-{list,set}
authorStefano Stabellini <sstabellini@xensource.com>
Tue, 10 Aug 2010 14:24:01 +0000 (15:24 +0100)
committerStefano Stabellini <sstabellini@xensource.com>
Tue, 10 Aug 2010 14:24:01 +0000 (15:24 +0100)
commit2b465fb2583d1c602a1738d65b3cc0016fb2539b
tree25cb065db244d0ad7fde1a1121c22c04d53aedab
parent1d05a5dafbb1fd1ca0872f61a374c0bc12f618b5
Fix glibc crash dump in xl vcpu-{list,set}

xc_vcpu_[sg]etaffinity require the number of _bytes_ needed for
holding a CPU map, not the number of bits. Fix this when
calling the function from libxl and rename the misleading variable
name to avoid future confusion.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl_cmdimpl.c